//
//  ByBetSecretView.m
//  caipiao_ios
//
//  Created by mc on 2018/8/23.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByBetSecretView.h"

@implementation ByBetSecretView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = rgba(248, 248, 248, 1);
        
        UILabel *line = [[UILabel alloc] init];
        [self addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(0);
            make.right.equalTo(self).offset(0);
            make.top.equalTo(self).offset(0);
            make.height.mas_equalTo(@1);
        }];
        line.backgroundColor = BY_LINE_COLOR;
        
        UIImageView *secretView = [[UIImageView alloc] init];
        [self addSubview:secretView];
        [secretView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self).offset(0);
            make.top.equalTo(self).offset(16);
            make.size.mas_equalTo(CGSizeMake(15, 19));
        }];
        secretView.image = [UIImage imageNamed:@"suo保密"];
        
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self).offset(-15);
            make.left.equalTo(self).offset(0);
            make.right.equalTo(self).offset(0);
            make.height.mas_equalTo(@14);
        }];
        titleLabel.font = FONT(12);
        titleLabel.textAlignment = NSTextAlignmentCenter;
        titleLabel.textColor = [UIColor grayColor];
        self.titleLabel = titleLabel;
        
    }
    return self;
}

@end
